﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package gaia.moga.dex.model {
    import org.robotlegs.mvcs.*;

    public class DexModel extends Actor {

        private var map:Object;
        public var isSetup:Boolean;

        public static const DEFAULT:String = "DEFAULT";

        public function DexModel(){
            this.map = {};
        }
        public function defaultSet():DexModelSet{
            return (this.getSet(DEFAULT));
        }
        public function getSet(_arg1:String):DexModelSet{
            return ((this.map[_arg1] = ((this.map[_arg1]) || (new DexModelSet()))));
        }
        public function getInstance(_arg1:uint):DexMogaInstance{
            var _local2:DexModelSet;
            var _local3:DexMogaInstance;
            for each (_local2 in this.map) {
                _local3 = _local2.getInstance(_arg1);
                if (_local3){
                    return (_local3);
                };
            };
            return (null);
        }

    }
}//package gaia.moga.dex.model 
